import NetInfo from '@react-native-community/netinfo';
let netInfo = null;
NetInfo.fetch().then(state => {
  netInfo = state;
  // console.log('Connection type', state);
  // console.log('Is connected?', state.isConnected);
});

// export const getNetInfo = () => netInfo;

export const getNetInfo = () => netInfo;
